package com.inspection.listener;

import com.inspection.operator.XmlAnalysis;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by zhujun on 2015-6-4.
 */
public class AppListener implements ServletContextListener{

    /**
     *
     * 容器初始化，进行系统的具体的配置
     *
     * @param servletContextEvent
     */
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        //容器初始化
        XmlAnalysis.initConstant(servletContextEvent);
        //将任务加入到调度系统
        XmlAnalysis.initQuartz();

    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
